{include adm_header.tpl}

<div class="nav">模板管理</div>
<div class="login">
	<a href="index.php?admin.htm">后台首页</a>/<a href="index.php">首页</a>/<a href="index.php?user-zone.htm">空间</a>
</div>
{if $content== ''}
	<div class="t">文件列表
	</div>
	{foreach $files as $k=>$v}
	{if !(($v == 'index.html') || (misc::in_key_str($v, "adm_")))}
		<div class="l2"><a href="index.php?admin-tpl-f-{echo base64_encode($v)}.htm">{$v}</a></div>
	{/if}
	{/foreach}
{else}
	{if $edit_msg != ''}<div class="t">{$edit_msg}</div>{/if}
	<div class="f">
		<form action="index.php?admin-tpl-f-{echo base64_encode($file)}.htm" method="post">
			<p>{$file}文件内容：
			<br/><textarea name="content" cols="24" rows="6">{$content}</textarea></p>
			<p><input type="submit" value="设置" name="sub"/>. <a href="index.php?admin-tpl.htm">返回列表</a></p>
		</form>
	</div>
{/if}
<div class="sub"></div>
{include adm_footer.tpl}